from django.db import models

# Create your models here.
from user.models import User


class VehicleManager(models.Manager):
    pass


class Vehicle(models.Model):
    user_id = models.ForeignKey(to=User, on_delete=models.CASCADE)
    license_plate_number = models.CharField(max_length=10, verbose_name="车牌号")
    service_action_log = models.TextField
    vehicle = VehicleManager()

    class Meta:
        db_table = "vehicle"
